/** 地址详情功能模块 */
export const infoModuleMixin = {
	data() { return { infoData: {}, infoLoading: true } },
	methods: {
		async getinfoFn() {
			this.infoLoading = true;
			try {
				const res = await this.$post('6544d1fb0a4fa', { address_id: this.id });
				this.infoData = res.data || {};
				this.dataMessage = {
					...this.infoData,
					aid: this.infoData.address_id,
					real_name: this.infoData.name,
					detail: this.infoData.address,
					address_code_area_str: `${this.infoData.province}${this.infoData.city}${this.infoData.district}`
				};
				this.is_default = this.infoData.is_default == 1;
			} catch (e) {}
			this.infoLoading = false;
		}
	}
};